package com.shop.controller;


import com.shop.dto.ProductDto;
import com.shop.dto.ProductDtoQuery;
import com.shop.service.ProductService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;
import java.util.Map;

/**
 * @author wzby
 * @Date: 2022/10/21 10:13
 */
@RestController
@RequestMapping("/api/product")
public class ProductController {
    @Autowired
    private ProductService productService;

    @GetMapping
    //查询所有
    public List<ProductDto> select(ProductDtoQuery productDtoQuery){
       return productService.select(productDtoQuery);
    }


}
